<?php
	include_once("evalmath.class.php");

	header("Content-type: text/plain; charset=utf-8");

	$m = new EvalMath;
	$m->suppress_errors = true;
	$result = $m->evaluate($_REQUEST['equation']);

	echo $result;
?>